package com.itheima.mall.web.minio;


import com.itheima.mall.service.oms.MinioService;
import com.itheima.mall.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
@RequestMapping("minio")
public class MinioController {
    @Autowired
    private MinioService minioService;

 /**
     * 文件删除
     * @return

*/



 /* *
     * 文件上传
     * @param file
     * @return
*/
 @PostMapping("upload")
 public R upload(MultipartFile file)  {
     minioService.upload(file);
     return R.succeed(null,"操作成功");
 }



}
